home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 4 / Precision Software Applications Silver Collection Volume 4 (1993).iso / database / flexbase.exe / CHAP3.TXT < prev    next >
Text File  |  1987-07-10  |  16KB  |  209 lines

  1. CREATING A DATABASE                                                        
  2.                                                                            
  3. This chapter explains how to create a database.  This includes the         
  4. procedures for defining each field in the database record as well as its   
  5. screen location for entering or accessing data.                            
  6.                                                                            
  7.                                                                            
  8.                                                                            
  9. HELP                                                                       
  10.                                                                            
  11.     Help assistance is available whenever you need it.  Press the F1       
  12. function key and context sensitive assistance will be displayed.           
  13.                                                                            
  14.                                                                            
  15.                                                                            
  16. TEXT MODE                                                                  
  17.                                                                            
  18.     The F2 function key turns the screen into a 21 line by 80 column       
  19. editor so that you can place free text at desired locations on the screen. 
  20. Free text is used to create field prompts for the different fields that    
  21. will be in your database record.                                           
  22.                                                                            
  23.     Press the Esc key to exit the text mode and redisplay the small block  
  24. cursor.                                                                    
  25.                                                                            
  26.     Press F1 while in the text mode to open the help window which describes
  27. the various text editing keys.                                             
  28.                                                                            
  29.                                                                            
  30.                                                                            
  31. DEFINE FIELD                                                               
  32.                                                                            
  33.     Move the small block cursor to the desired location on the screen where
  34. you wish to locate a field, then press F4.  A field definition window will 
  35. open and you will be prompted for the information that Flexbase needs to   
  36. process the data for this field.  You will be prompted for:                
  37.                                                                            
  38.                                                                            
  39.     Field Name - A 1 to 12 character name that identifies                  
  40.                  this field.                                               
  41.                                                                            
  42.     Field Type - Enter the designator for the type of data                 
  43.                  that will be entered and displayed in this                
  44.                  field.                                                    
  45.                                                                            
  46.                         C - Character field.                               
  47.                                                                            
  48.                         N - Numeric field.                                 
  49.                                                                            
  50.                         D - Date field.                                    
  51.                                                                            
  52.       Sub Type - Required for date field types.                            
  53.                                                                            
  54.                         U - User input only.                               
  55.                                                                            
  56.                         S - Date supplied by system.                       
  57.                                                                            
  58.         Length - The desired width of the field.  Maximum                  
  59.                  field lengths are:                                        
  60.                                                                            
  61.                         C - 80                                             
  62.                                                                            
  63.                         N - 15                                             
  64.                                                                            
  65.                         D - 10 (automatically set)                         
  66.                                                                            
  67.       Decimals - The desired number of decimal places to                   
  68.                  display for numeric fields.  The decimal                  
  69.                  point takes up one position in the field                  
  70.                  length, so for a field length of 8 with 2                 
  71.                  decimal places, the maximum numeric value                 
  72.                  that can be displayed is 99999.99.                        
  73.                                                                            
  74.     Num Format - Numeric fields can be displayed in three                  
  75.                  formats:                                                  
  76.                                                                            
  77.                         S - Standard (27384.89)                            
  78.                                                                            
  79.                         F - Financial (27,384.89)                          
  80.                                                                            
  81.                         C - Currency ($27,384.89)                          
  82.                                                                            
  83.     Upper Case - Forces the data in the field to upper case                
  84.                  characters.  Provides standardization for                 
  85.                  data entry.                                               
  86.                                                                            
  87.     Must Enter - Specifies that the field must be entered                  
  88.                  before the record can be saved.                           
  89.                                                                            
  90.        Formula - For character, numeric and user input date                
  91.                  fields, formulas and functions can be entered             
  92.                  on this line.  The formula or function will be            
  93.                  used when accessing the database to perform               
  94.                  various mathematical and logical functions.  See          
  95.                  Appendix B for a complete listing and formats of          
  96.                  the Flexbase formulas and functions.                      
  97.                                                                            
  98.           SAVE - Move the reverse video cursor over this command           
  99.                  and press Enter to save this field definition.            
  100.                  The field definition can also be saved by                 
  101.                  pressing the F10 function key from anywhere in            
  102.                  the field definition window.                              
  103.                                                                            
  104.                  If Flexbase detects any errors, a message will            
  105.                  be displayed on the save line that indicates the          
  106.                  most probable cause.                                      
  107.                                                                            
  108.                                                                            
  109.                                                                            
  110.                                                                            
  111. MODIFY FIELD                                                               
  112.                                                                            
  113.     Once a field has been defined, you can return to that field and make   
  114. modifications to the initial field definition.  To do this, move the small 
  115. block cursor to a position within the width of the field and press F6.  The
  116. field definition window will open and the previously defined field         
  117. attributes will be displayed.  At this point, use the same procedures that 
  118. you used to define the field.  When finished, use the SAVE or F10 command  
  119. to save the modified field definition and close the window.                
  120.                                                                            
  121.                                                                            
  122.                                                                            
  123. DELETE FIELD                                                               
  124.                                                                            
  125.     To delete a previously defined field, position the small block cursor  
  126. within the width of the field and press F7.  Flexbase will ask you if you  
  127. are sure that you want to go ahead with this command.  If you do, press Y, 
  128. otherwise, press N.  Pressing the Esc key in response to this question will
  129. cancel this delete request.                                                
  130.                                                                            
  131.                                                                            
  132.                                                                            
  133. REPOSITION FIELD                                                           
  134.                                                                            
  135.     Once a field has been defined, you can reposition the field to another 
  136. location on the screen.  Position the small block cursor within the width  
  137. of the field and press F8.  The selected field will highlight and any      
  138. depression of the cursor control keys will move the field in the desired   
  139. direction.  When the new screen location is reached, press Enter to end    
  140. this command.                                                              
  141.                                                                            
  142. Flexbase will check to ensure that the new screen location does not collide
  143. with other fields or free text before the field is permanently repositioned
  144. at the new location.  If a collision exists, Flexbase will beep and wait   
  145. for you to correct the situation.  Press the Esc key to cancel this command
  146. and return the field to its original screen location.                      
  147.                                                                            
  148.                                                                            
  149.                                                                            
  150. LIST FIELDS                                                                
  151.                                                                            
  152.     The list fields command will open a window and display the names of all
  153. fields that have been defined up to this point in the create session.  The 
  154. F10 function key executes this command and the Esc key is used to cancel   
  155. this command and close the window.  When defining or modifying a field, the
  156. window will automatically close upon exiting each of those commands.       
  157.                                                                            
  158.                                                                            
  159.                                                                            
  160. END THE CREATE SESSION                                                     
  161.                                                                            
  162.     Press F9 to end the current create session.  You will be prompted as   
  163. to whether you wish to save the work that has been done up to this point.  
  164. If you wish to save the database design that you are working on, press Y,  
  165. otherwise press N.  Pressing the Esc key will return you to the create     
  166. session.                                                                   
  167.                                                                            
  168.     If you pressed Y in response to the question to save this session, you 
  169. will be advanced to the key field selection process prior to saving this   
  170. session to disk and returning to the Flexbase main menu.  The key field    
  171. selection process is discussed in more detail in the next section.         
  172.                                                                            
  173.                                                                            
  174.                                                                            
  175. KEY FIELDS                                                                 
  176.                                                                            
  177.     Flexbase uses key fields to increase the speed when searching for      
  178. records in the database and printing reports in a sorted order.  Flexbase  
  179. allows a maximum of nine key fields for each database, and any of the      
  180. three field types (C,N,D) can be selected as a key field.                  
  181.                                                                            
  182.     The select key process begins when you tell Flexbase to save the create
  183. session in response to the F9 command.                                     
  184.                                                                            
  185.     Use the cursor control keys to move through the fields in the record   
  186. until you have highlighted the field that you wish to use as a key.  Press 
  187. F7 and you will be asked if duplication will be allowed for this field.    
  188. Answer appropriately to the question and continue until you have selected  
  189. all of the desired key fields or the maximum number of keys have been      
  190. selected.                                                                  
  191.                                                                            
  192.     To remove a field from the key field table, highlight the field and    
  193. press F8.  To change the type of key tag for a key field, highlight the    
  194. desired field and press F7 which will provide you with the opportunity to  
  195. specify a different tag.                                                   
  196.                                                                            
  197.     When all key fields have been selected, press F9 which will save the   
  198. create session to disk and return you to the Flexbase main menu.           
  199.                                                                            
  200.                                                                            
  201.                                                                            
  202. WARNING TO TWO DISKETTE SYSTEM USERS                                       
  203.                                                                            
  204.     When creating a database, place a blank diskette into drive B and      
  205. prefix the name of the file with B:.                                       
  206.                                                                            
  207.     Do not use the Flexbase system diskette in drive A as a working        
  208. diskette.  There isn't enough room on it!                                  
  209.